package com.huiyun.project.im.core.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huiyun.project.im.core.dto.ImGroupDto;
import com.huiyun.project.im.entity.ImGroup;
import com.huiyun.project.im.core.mapper.ImGroupMapper;
import com.huiyun.project.im.core.service.IImGroupService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * IM组 服务实现类
 * </p>
 *
 * @author DESKTOP-CIBUH3O
 * @since 2020-07-27
 */
@Service
public class ImGroupServiceImpl extends ServiceImpl<ImGroupMapper, ImGroup> implements IImGroupService {

    @Override
    public List<ImGroupDto> findGroup(String userId) {
        Map<String,Object> map=new HashMap<>();
        map.put("userId",userId);
        return baseMapper.findGroup(map);
    }
}
